package com.helsinki.service;

import com.github.pagehelper.PageInfo;
import com.helsinki.pojo.Role;
import com.helsinki.pojo.UserInfo;
import com.helsinki.utils.QueryVo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserInfoService extends UserDetailsService {
    UserInfo queryById(String id);

    List<Role> queryRoleByUid(String id);

    int addRoles(String userId, String[] roleIds);

    //添加用户
    void save(UserInfo user) throws Exception;

    PageInfo<UserInfo> queryAll(Integer pageNum, Integer pageSize);

    void update(UserInfo userInfo);

    void updateUserRole(QueryVo queryVo);

    void deleteById(String id);
}
